package com.hhq.usercenter.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * <p>Description: some description </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/1/8 18:08
 */
@ConfigurationProperties(prefix = "web")
@Configuration
@Setter
@Getter
public class WebProperties {

    /**
     * 白名单
     */
    private List<String> whiteNames;

    /**
     * session配置
     */
    private Session session;

    /**
     * session配置
     */
    @Setter
    @Getter
    public static class Session {

        /**
         * token前缀
         */
        private String prefix;

        /**
         * token超时时间
         */
        private Long expireTime;
    }
}
